package com.scy.hospitalmanager.service.impl;

import com.scy.hospitalmanager.dao.patientdao.PatientPhysicianDao;
import com.scy.hospitalmanager.pojo.Patient;
import com.scy.hospitalmanager.pojo.PatientPhysicianOrder;
import com.scy.hospitalmanager.service.PatientPhysicianService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description:
 * @ClassName: PatientPhysicianServiceImpl
 * @Author: KuonnjiArisu
 * @Date: 2021/8/27 9:41
 * @Version: 1.0
 */
@Service
public class PatientPhysicianServiceImpl implements PatientPhysicianService {
    @Autowired
    PatientPhysicianDao patientPhysicianDao;
    /**
     * @Author Song_can_yu
     * @Description //TODO 查看医嘱
     * @Param int id
     * @return List
     */
    @Override
    public Patient getPhysicianById(Patient patient) {
        return patientPhysicianDao.getPhysicianById(patient);
    }


    /**
     * @Author KuonnjiAirsu
     * @Description //TODO 每条医嘱数据填写
     * @Param PatientPhysician
     * @return int
     */
    @Override
    public int updatePatientPhysicianOrder(PatientPhysicianOrder patientPhysicianOrder) {
        return patientPhysicianDao.updatePatientPhysicianOrder(patientPhysicianOrder);
    }
}
